package org.ytor.core.sqlflow.builder.support;

import java.util.Map;

/**
 * created by yangtong on 2025/8/8 14:50:50
 * <br/>
 * having 子句
 */
public class HavingBuilder extends ConditionBuilder {
    public HavingBuilder(Map<Object, String> tableAliases) {
        super(tableAliases);
    }

    @Override
    public String toSql() {
        String inner = super.toSql();
        return inner.isEmpty() ? "" : "HAVING\n\t" + inner;
    }
}
